package com.gxa.order.consumer;

import com.gxa.order.service.OrderManageService;
import entity.ArtOrder;
import entity.MacOrder;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

//@Component
//@RocketMQMessageListener(consumerGroup = "travel-order",topic = "artOrder-topic")
//@Slf4j
//public class ArtOrderConsumer implements RocketMQListener<ArtOrder> {
//    @Autowired
//    private OrderManageService orderManageService;
//    @Override
//    public void onMessage(ArtOrder artOrder) {
//        orderManageService.updateStatusArtOut(artOrder.getArtOrderId());
//        //修改订单为出票
//        log.info("接收到的消息：{}",artOrder);
//    }
//}
